package config

import (
	_ "embed"
	"github.com/pelletier/go-toml/v2"
)

//go:embed conf.toml
var InitConfig []byte

func Unmashal() (ServerConf, error) {
	var ss ServerConf
	err := toml.Unmarshal(InitConfig, &ss)
	return ss, err
}
